package com.xxc.exam.entity.pojo

import com.xxc.batis.po.BasePO
import com.xxc.common.anotation.POKO
import java.math.BigInteger
import java.sql.Time
import java.sql.Timestamp
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Table

@Entity
@Table(name = "contest")
@POKO
data class Contest (var name:String? = null,
                    @Column(name = "paper_id")
                    var paperId:BigInteger? = null,
                    var type:Int? = null,
                    var url:String? = null,
                    @Column(name = "owner_id")
                    var ownerId:BigInteger? = null,
                    @Column(name = "time_len")
                    var timeLen:Time? = null,
                    @Column(name = "gmt_start")
                    var gmtStart:Timestamp? = null,
                    @Column(name = "gmt_end")
                    var gmtEnd:Timestamp? = null):BasePO()